- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
✨ Expose licensing endpoints in api server #7009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Expose licensing endpoints in api server #7009
Conversation
          Codecov ReportAttention: Patch coverage is  
 Additional details and impacted files@@            Coverage Diff             @@
##           master    #7009      +/-   ##
==========================================
+ Coverage   86.92%   87.82%   +0.90%     
==========================================
  Files        1646     1331     -315     
  Lines       64676    55774    -8902     
  Branches     2041      900    -1141     
==========================================
- Hits        56217    48985    -7232     
+ Misses       8121     6652    -1469     
+ Partials      338      137     -201     
 
 Continue to review full report in Codecov by Sentry. 
  | 
    
| 
           I still need to polish the tests a bit, but apart from that the PR is ready for review  | 
    
        
          
                services/api-server/src/simcore_service_api_server/services_rpc/resource_usage_tracker.py
          
            Show resolved
            Hide resolved
        
              
          
                services/api-server/src/simcore_service_api_server/api/routes/licensed_items.py
          
            Show resolved
            Hide resolved
        
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Left some suggestions and thoughts.
        
          
                services/api-server/src/simcore_service_api_server/models/schemas/licensed_items.py
          
            Show resolved
            Hide resolved
        
              
          
                services/api-server/src/simcore_service_api_server/models/schemas/licensed_items.py
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                services/api-server/src/simcore_service_api_server/services_rpc/resource_usage_tracker.py
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                services/api-server/src/simcore_service_api_server/services_rpc/wb_api_server.py
          
            Show resolved
            Hide resolved
        
              
          
                services/api-server/src/simcore_service_api_server/services_rpc/wb_api_server.py
          
            Show resolved
            Hide resolved
        
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
        
          
                packages/models-library/src/models_library/api_schemas_webserver/licensed_items_checkouts.py
          
            Show resolved
            Hide resolved
        
              
          
                services/api-server/src/simcore_service_api_server/exceptions/backend_errors.py
          
            Show resolved
            Hide resolved
        
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, forgot to submit! Thanks a lot! 💯
        
          
                services/api-server/src/simcore_service_api_server/core/health_checker.py
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | 
           @bisgaard-itis there is a issue under the main PO that I think fits thisone as well: #6875  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So just for my understanding. When we will add more "licensed item" in the future we just use a flat list and a GET will retrieve them all. Is there a way that we can distinguish different vendor license items at least internally? Such that we could filter e.g. with a query parameter?
          
 I could add a query parameter in this PR which is only allowed to take a single value (  | 
    
          
 @mguidon I discussed with @matusdrobuliak66, who mentioned filtering will come at a later point.  | 
    
          
 | 
    



What do these changes do?
Related issue/s
How to test
Dev-ops checklist